package com.cskaoyan.market.vo.wx.wtz;

import lombok.Data;
import lombok.NonNull;
import org.hibernate.validator.constraints.Length;

/**
 * @Author: wutanzi
 * @Date: 2023/5/23 上午10:08
 * @Version: v1.0.0
 * @Description: 验证用户提交的数据合法性，并在验证不通过时返回错误信息。
 **/
@Data
public class RegisterUserVo {

    @Length(min = 6,max = 20,message = "用户名合法长度6到20位")
    @NonNull
    private String username;

    @Length(min=6,max = 20,message = "密码长度6到20位")
    @NonNull
    private String password;

    @Length(min = 11,max = 11,message = "{\"errno\":707,\"errmsg\":\"手机号格式不正确\"}")
    private String mobile;

    @NonNull
    private String code;
    private String wxCode;


}
